﻿using System;
using System.Collections.Generic;
using System.Text;
using System.Threading.Tasks;
using Zoomtel.Entity;
using Zoomtel.Entity.BIZ;
using Zoomtel.Persist.BIZ;
using Zoomtel.Service.BIZ.ViewModels;
using Zoomtel.Utils.Helpers;

namespace Zoomtel.Service.BIZ
{
   public class BankService
    {
        BankRepository bankRepository;
        public BankService(BankRepository _bankRepository)
        {
            bankRepository = _bankRepository;
        }
        public async Task<IResultModel> Query(BankEntity model)
        {
            var result = await bankRepository.Query(model);

            return ResultModel.Success(result);
        }
    }
}
